<?php
// +----------------------------------------------------------------------
// | PHP [ JUST YOU ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~2017 http://www.jyphp.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: FlyingPig <flyingpigfp@163.com>
// +----------------------------------------------------------------------

namespace App\Http\Controllers;


use App\Exceptions\ApiException;
use Illuminate\Support\Facades\DB;

class PlayerInfo extends Base
{

    public function update()
    {
        DB::table('t_player_info')->where('id',$this->uid)->update(['avater_url' => $this->param['icon_id']]);
        return $this->returnData();
    }

}